package java代理模式;

/**
 * @author coderFu
 * @create 2022/2/14
 */
public class StaticProxyTest {

    public static void main(String[] args) {


        CarFactory carFactory = new CarFactory();

//        carFactory.saleCar();
        StaticProxy staticProxy = new StaticProxy();
       // staticProxy.saleCar(carFactory);
        BenChiCarFactory benChiCarFactory = new BenChiCarFactory();
        staticProxy.saleCar(benChiCarFactory);
    }
}
